package cn.ither.service.impl;

import cn.ither.service.TicketService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @Author: zhanghuan
 * @date: 2020/11/19 15:32
 * @description:
 */
@Service//可以被扫描到，在项目已启动就被自动注册到注册中心
@Component
public class TicketServiceImpl implements TicketService {
    @Override
    public String getTicket() {
        return "卖票啦";
    }
}
